package com.vains.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/generator")
@Api(tags = "测试以 generator 开头的地址的权限")
public class TestGeneratorController {

    @GetMapping("/download")
    @ApiOperation(value = "测试是否有权访问测试接口(这个接口受权限控制)")
    public String generatorDownload() {
        return "访问接口 download 成功";
    }

}
